//
//  AppMacro.h
//  HZ
//
//  Created by huazi on 14-8-4.
//  Copyright (c) 2014年 HZ. All rights reserved.

#define UIColorFromRGB(r,g,b) [UIColor \
colorWithRed:r/255.0 \
green:g/255.0 \
blue:b/255.0 alpha:1]


#define DeviceRect   [UIScreen mainScreen].bounds
#define DeviceHeight [UIScreen mainScreen].bounds.size.height
#define DeviceWidth  [UIScreen mainScreen].bounds.size.width
#define kScaleDeviceLength(length) length*[UIScreen mainScreen].bounds.size.width/320.0
#define kNavBarHeight  64.0f
#define kVersion     [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]
#define kBiuld       [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]
#define kLogined     @"Logined"
#define kRememberAccount @"RememberAccount"
#define kUserAccount   @"UserAccount"
#define kUserPwd      @"UserPwd"
#define kUserDic     @"UserDic" 
